package cn.codeming;

import cn.codeming.annotation.RpcReference;
import org.springframework.stereotype.Component;

@Component
public class HelloController {

    @RpcReference(version = "version1", group = "test1")
    private HelloService helloService;

    public void test() throws InterruptedException {
        for (int i = 0; i < 10; i++) {
            System.out.println(helloService.hello(new Hello("hello", "world")));
        }
    }
}
